Skip to content

perf: tune MiniMax M3.1 vLLM AgentX recipe / perf:优化 MiniMax M3.1 vLLM AgentX 配置 - #4528

Closed
jiacao-amd wants to merge 6 commits into
mainfrom
codex/minimax-m31-c16-k7
Closed

jiacao-amd wants to merge 6 commits into
mainfrom
codex/minimax-m31-c16-k7

Conversation

@jiacao-amd

@jiacao-amd jiacao-amd commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Tune MiniMax-M3.1-Flash MI355X vLLM AgentX decoding with K7 DSpark and cross-layer index reuse. All sweep points use K7 with the corresponding golden acceptance curve; C16–C64 also enable index_topk_freq=2. C1–C8 retain mono decode, which does not support index reuse.

The table reports separate 900-second AgentX tests at TP4/C16, on the same hardware without a profiler, using the CI configuration.

Metric K3 baseline K7 only Index reuse only (K3)
P90 interactivity (tokens/s/user) 118.65 136.75 (+15.3%) 135.56 (+14.3%)
Output throughput (tokens/s/GPU) 162.15 164.62 (+1.5%) 163.45 (+0.8%)
Mean ITL (ms) 6.171 5.039 (-18.3%) 5.281 (-14.4%)
Mean TTFT (ms) 516.14 557.66 (+8.0%) 563.50 (+9.2%)
P90 TTFT (ms) 833.30 1,004.18 (+20.5%) 983.23 (+18.0%)

Both isolated changes improve decode interactivity with higher TTFT. Their combined gain has not been measured. Index reuse changes selected KV blocks, and model quality has not yet been validated. The formal test phases had zero errors; the index-reuse test had one empty-response error during warmup. P90 interactivity follows the CI convention: P10 of per-user output throughput. Acceptance in these performance tests is synthetic.

AI model disclosure

Codex, identified by the runtime as based on GPT-6; the exact deployed model identifier could not be verified. Role: experiments, analysis, configuration changes, and PR preparation.

PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.
  • Before merging via reuse, an authorized maintainer (OWNER/MEMBER/COLLABORATOR) has commented /use <run_id> (or the legacy /reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
中文

优化 MiniMax-M3.1-Flash MI355X vLLM AgentX 的 DSpark 和跨层 index 复用配置。所有 sweep 并发点使用 K7,由启动器选择对应 golden acceptance curve;C16–C64 额外启用 index_topk_freq=2。C1–C8 保留 mono decode,它不支持 index 复用。

上表是相同硬件、TP4/C16、无 profiler 的 900 秒单项对照。K7 和 index 复用各自改善 decode interactivity,但提高 TTFT;组合收益尚未测量。index 复用会改变选中的 KV blocks,模型质量尚未验证。两项正式测试均无错误,index 复用组预热时有一条空响应错误。P90 interactivity 取每用户输出速率的 P10;性能测试采用 synthetic acceptance。

AI:运行环境标识为基于 GPT-6 的 Codex,无法确认完整部署模型标识;用于实验、分析、配置修改及 PR 编写。

@jiacao-amd jiacao-amd added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@jiacao-amd
jiacao-amd marked this pull request as ready for review October 26, 2026 09:30
@jiacao-amd
jiacao-amd requested a review from a team October 26, 2026 09:30
@claude

claude Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @jiacao-amd's task in 49s —— View job


LGTM - no blocking issues found.

The new override_tp4_c16_dspark7 block inherits the base settings: NVFP4 KV and indexer caches, DBO, TP4 and the V2 runner. It changes only num_speculative_tokens (3 → 7) at max-num-seqs: 32. The K3 zip still has two matching lists, [64, 128] and ['32', '64']. Each value in the master-config conc-list [1, 2, 4, 8, 16, 32, 64] therefore matches exactly one variant. The K7 golden curve is already used by the mono variant. The changelog entry is appended at the end of the file and names the right config key. I couldn't run infx.matrix.changed in this environment because it needs approval. Running it by hand isn't needed because the PR already includes a changelog entry.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this PR and found no bugs. The recipe and amd-master.yaml have CODEOWNERS, so one of them should still look at it, and the sweep run that /use needs before merge has not happened yet.

What was reviewed:

  • The new C16 block inherits the NVFP4 KV cache, the NVFP4 indexer and the DBO settings from base, because only the C1-C8 mono override changes them. That matches the changelog.
  • The C16 speculative-config is the same as the K3 one apart from the token count, including kv_cache_dtype: fp8. The shortened zip lists line up: max-num-seqs [64, 128] with CONC ['32', '64']. Together the overrides still cover 1-64, which matches the master conc-list.
  • The changelog entry is appended at the end of the file and existing entries are unchanged. The deleted amd-master.yaml header comment does not change any config.
Extended reasoning...

The change switches C16 in the MiniMax-M3.1-Flash MI355X vLLM agentic recipe from 3 to 7 DSpark draft tokens using a single-concurrency override, shortens the K3 zip to C32-C64, removes a header comment from amd-master.yaml and appends one perf-changelog entry. It does not touch anything security-sensitive. The edit is small and follows patterns already used in the file. I deferred because CODEOWNERS covers both amd-master.yaml and the whole repo, and because this performance change still needs a maintainer-accepted sweep before merge.

@jiacao-amd jiacao-amd added non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@jiacao-amd jiacao-amd changed the title perf: reduce MiniMax M3.1 C16 decode latency with K7 / perf:用 K7 降低 MiniMax M3.1 C16 解码延迟 perf: reduce MiniMax M3.1 decode latency with K7 / perf:用 K7 降低 MiniMax M3.1 解码延迟 Oct 26, 2026
@jiacao-amd jiacao-amd changed the title perf: reduce MiniMax M3.1 decode latency with K7 / perf:用 K7 降低 MiniMax M3.1 解码延迟 perf: improve MiniMax M3.1 vLLM AgentX interactivity with K7 / perf:用 K7 提升 MiniMax M3.1 vLLM AgentX 交互性能 Oct 26, 2026
@jiacao-amd jiacao-amd changed the title perf: improve MiniMax M3.1 vLLM AgentX interactivity with K7 / perf:用 K7 提升 MiniMax M3.1 vLLM AgentX 交互性能 perf: tune MiniMax M3.1 vLLM AgentX recipe / perf:优化 MiniMax M3.1 vLLM AgentX 配置 Oct 26, 2026
args:
speculative-config: '{"method":"dspark","num_speculative_tokens":3,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
# Index reuse is incompatible with mono decode at lower concurrency.
hf-overrides: '{"text_config":{"use_index_cache":true,"index_topk_freq":2}}'

@functionstackx functionstackx Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This drops long context eval accuracy, explicitly not allowed fyi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants